<?php
use think\facade\Route;

/*登陆*/
Route::get('login/index','Login/index');
Route::get('error','Login/message');
Route::post('login/check','Login/check');
Route::post('login/logout','Login/logout');
/*验证码*/
Route::get('captcha/[:config]','\\think\\captcha\\CaptchaController@index');
/*工作台*/
Route::get('welcome','Index/welcome');
Route::get('/','Index/index');

/*用户管理*/
Route::get('user/list_data','User/list_data');
Route::post('user/update_password','User/update_password');
Route::put('user/info/:id','User/update_info');
Route::resource('user','User');

/*角色*/
Route::get('role/list_data','Role/list_data');
Route::get('role/:id','Role/role_permission');
Route::get('role','Role/index');
Route::post('role','Role/save');
Route::put('role/permission/:role','Role/update_permission');
Route::put('role/:id','Role/update');
Route::delete('role/:id','Role/delete');

/*插件*/
Route::get('plugin/list_data','Plugin/list_data');
Route::get('plugin/:id','Plugin/set');
Route::get('plugin','Plugin/index');
Route::post('plugin_update','Plugin/upload');
Route::post('plugin_set/:id','Plugin/set_store');
Route::put('plugin/:id','Plugin/update');
Route::put('plugin_update/:id','Plugin/plugin_update');
Route::delete('plugin/:id','Plugin/delete');
Route::delete('plugin_set/:id/:key','Plugin/set_delete');

/*权限*/
Route::get('permission/list_data','Permission/list_data');
Route::get('permission','Permission/index');
Route::post('permission','Permission/save');
Route::put('permission/:id','Permission/update');
Route::delete('permission/:id','Permission/delete');

/*客服*/
Route::get('server','Server/index');

/*日志*/
Route::get('log/list_data','Log/list_data');
Route::get('log','Log/index');

